package com.xmcc.dto;


import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 数据传输对象：前后端交互
 * */
@Setter
@Getter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class SysDeptDto implements Serializable {
    //修改的时候需要用到id：
    private Integer id;

    @NotBlank(message = "部门名不能为空")
    @Length(min = 3,max = 15)
    private String name;

    private Integer parentId=0;

    @NotNull(message = "部门优先级不能为空")
    private Integer seq;


    private String remark;

}
